$spacer:   1rem !default;
$input-padding-x:                .75rem !default;
$input-padding-y:                .5rem !default;
$form-control-tip-bottom: 5px;
$form-control-tip-color: #ec971f;
$white: #fff;
$input-h: 2.25rem;

:host {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  z-index: 5;
  .form-control-tip {
    position: absolute;
    //bottom: $input-padding-y * 2 + $spacer * 1.25;
    bottom: 0;
    left: auto;
    right: $input-padding-x;
    border: 1px solid $form-control-tip-color;
    color: $form-control-tip-color;
    background-color: $white;
    padding: ($input-padding-y * .5) ($input-padding-x * .5);
    border-radius: 4px;
    font-size: .875rem;
    z-index: 2;

    &:before,
    &:after {
      position: absolute;
      display: block;
      content: '';
      border: $form-control-tip-bottom solid transparent;
      left: auto;
      right: 1rem;
      bottom: -2 * $form-control-tip-bottom;
      border-top-color: $form-control-tip-color;
    }
    &:after {
      bottom: -2 * $form-control-tip-bottom + 1px;
      border-top-color: $white;
    }

    &.left {
      left: $input-padding-x;
      right: auto;
      &:before,
      &:after {
        left: 1rem;
        right: auto;
      }
    }
  }
}
